package com.starbaba.mainbanner.model;


import java.io.Serializable;

import com.starbaba.model.utils.DaoImgUtils;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang3.StringUtils;


public class BannerControlVO implements Serializable {

 
    private static final long serialVersionUID = 1L;
	
    private java.lang.Long id;
    
    private java.lang.Integer channel;
    
    private java.lang.String platform;
    
    private java.lang.Integer minVersionCode;
    
    private java.lang.Integer maxVersionCode;
    
    private java.util.Date startTime;
    
    private java.util.Date endTime;
    
    private java.lang.Integer position;
    
    private java.lang.Integer orderNum;
    
    private java.lang.String title;
    
    private java.lang.String content;
    
    private java.lang.String imgurl;
    
    private java.lang.String targeturl;
    
    private java.lang.Integer status;
    
    private java.lang.Integer displayWay;
    
    private java.lang.String api;
    
    private java.lang.Integer type;
    
    private java.lang.String targetTitle;
    
    private java.lang.Integer withHead;
    
    private java.lang.Integer showToolbar;
    
    private java.lang.Integer clearTop;
    
    private java.lang.Integer canBlockNetworkImg;
    
    private java.lang.Integer reloadWhenLogin;
    
    private java.lang.Integer takeOverBackPressed;
    
    private java.lang.Integer callbackWhenResumeAndPause;
    
    private java.lang.Integer showTitle;
    
    private java.lang.Integer injectCss;
    
    private java.lang.Integer mustLogin;
    
    private java.lang.String launch;
    
    private java.lang.String diyLaunch;
    
    private java.lang.String diyLaunchParam;
    
    private java.lang.Integer persist_time;
    
    private java.lang.String cityids;
    
    private java.lang.Integer showType;
    
    private java.lang.String extra;
    
    private java.lang.Integer prdid;
    
    private java.lang.String app_prd_id;
    
    private java.lang.String memo;
    
    private java.lang.String except_channel;
    
    private java.lang.String business_condition;
    
    private String operator;

    private Integer isTitleBarImmerse;
    private Integer isMyIconWhite;
    private String titleUrl;
    
    public BannerControlVO(java.lang.Long id,java.lang.Integer channel,java.lang.String platform,java.lang.Integer minVersionCode,java.lang.Integer maxVersionCode,java.util.Date startTime,java.util.Date endTime,java.lang.Integer position,java.lang.Integer orderNum,java.lang.String title,java.lang.String content,java.lang.String imgurl,java.lang.String targeturl,java.lang.Integer openType,java.lang.Integer status,java.lang.Integer displayWay,java.lang.String api, java.lang.Integer persist_time, java.lang.String cityids) {
        this.id = id;
        this.channel = channel;
        this.platform = platform;
        this.minVersionCode = minVersionCode;
        this.maxVersionCode = maxVersionCode;
        this.startTime = startTime;
        this.endTime = endTime;
        this.position = position;
        this.orderNum = orderNum;
        this.title = title;
        this.content = content;
        this.imgurl = imgurl;
        this.targeturl = targeturl;
        this.status = status;
        this.displayWay = displayWay;
        this.api = api;
        this.persist_time = persist_time;
        this.cityids = cityids;
    }
    
    public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public BannerControlVO(java.lang.Long id) {
        this.id = id;
    }

    public BannerControlVO() {
    }
    
    public java.lang.Long getId() {
        return this.id;
    }

    public void setId(java.lang.Long id) {
        this.id = id;
    }
    
    public java.lang.Integer getChannel() {
        return this.channel;
    }

    public void setChannel(java.lang.Integer channel) {
        this.channel = channel;
    }
    
    public java.lang.String getPlatform() {
        return this.platform;
    }

    public void setPlatform(java.lang.String platform) {
        this.platform = platform;
    }
    
    public java.lang.Integer getMinVersionCode() {
        return this.minVersionCode;
    }

    public void setMinVersionCode(java.lang.Integer minVersionCode) {
        this.minVersionCode = minVersionCode;
    }
    
    public java.lang.Integer getMaxVersionCode() {
        return this.maxVersionCode;
    }

    public void setMaxVersionCode(java.lang.Integer maxVersionCode) {
        this.maxVersionCode = maxVersionCode;
    }
    
    public java.util.Date getStartTime() {
        return this.startTime;
    }

    public void setStartTime(java.util.Date startTime) {
        this.startTime = startTime;
    }
    
    public java.util.Date getEndTime() {
        return this.endTime;
    }

    public void setEndTime(java.util.Date endTime) {
        this.endTime = endTime;
    }
    
    public java.lang.Integer getPosition() {
        return this.position;
    }

    public void setPosition(java.lang.Integer position) {
        this.position = position;
    }
    
    public java.lang.Integer getOrderNum() {
        return this.orderNum;
    }

    public void setOrderNum(java.lang.Integer orderNum) {
        this.orderNum = orderNum;
    }
    
    public java.lang.String getTitle() {
        return this.title;
    }

    public void setTitle(java.lang.String title) {
        this.title = title;
    }
    
    public java.lang.String getContent() {
        return this.content;
    }

    public void setContent(java.lang.String content) {
        this.content = content;
    }
    
	public java.lang.String getImgurl() {
		if (StringUtils.isEmpty(imgurl)) {
			return "";
		}
		return DaoImgUtils.dealWidthUrl(imgurl);
	}

    public void setImgurl(java.lang.String imgurl) {
        this.imgurl = imgurl;
    }
    
    public java.lang.String getTargeturl() {
        return this.targeturl;
    }

    public void setTargeturl(java.lang.String targeturl) {
        this.targeturl = targeturl;
    }
    
    public java.lang.Integer getStatus() {
        return this.status;
    }

    public void setStatus(java.lang.Integer status) {
        this.status = status;
    }
    
    public java.lang.Integer getDisplayWay() {
        return this.displayWay;
    }

    public void setDisplayWay(java.lang.Integer displayWay) {
        this.displayWay = displayWay;
    }
    
    public java.lang.String getApi() {
        return this.api;
    }

    public void setApi(java.lang.String api) {
        this.api = api;
    }
    
    public String toString() {
        return new ToStringBuilder(this)
            .append("id", getId())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof BannerControlVO) ) return false;
        BannerControlVO castOther = (BannerControlVO) other;
        return new EqualsBuilder()
            .append(this.getId(), castOther.getId())
            .isEquals();
    }
    
    public int hashCode() {
        return new HashCodeBuilder()
            .append(getId())
            .toHashCode();
    }

	public java.lang.Integer getType() {
		return type;
	}

	public void setType(java.lang.Integer type) {
		this.type = type;
	}

	public java.lang.String getTargetTitle() {
		return targetTitle;
	}

	public void setTargetTitle(java.lang.String targetTitle) {
		this.targetTitle = targetTitle;
	}

	public java.lang.Integer getShowToolbar() {
		return showToolbar;
	}

	public void setShowToolbar(java.lang.Integer showToolbar) {
		this.showToolbar = showToolbar;
	}

	public java.lang.Integer getWithHead() {
		return withHead;
	}

	public void setWithHead(java.lang.Integer withHead) {
		this.withHead = withHead;
	}

	public java.lang.Integer getClearTop() {
		return clearTop;
	}

	public void setClearTop(java.lang.Integer clearTop) {
		this.clearTop = clearTop;
	}

	public java.lang.Integer getReloadWhenLogin() {
		return reloadWhenLogin;
	}

	public void setReloadWhenLogin(java.lang.Integer reloadWhenLogin) {
		this.reloadWhenLogin = reloadWhenLogin;
	}

	public java.lang.Integer getCanBlockNetworkImg() {
		return canBlockNetworkImg;
	}

	public void setCanBlockNetworkImg(java.lang.Integer canBlockNetworkImg) {
		this.canBlockNetworkImg = canBlockNetworkImg;
	}

	public java.lang.Integer getTakeOverBackPressed() {
		return takeOverBackPressed;
	}

	public void setTakeOverBackPressed(java.lang.Integer takeOverBackPressed) {
		this.takeOverBackPressed = takeOverBackPressed;
	}

	public java.lang.Integer getCallbackWhenResumeAndPause() {
		return callbackWhenResumeAndPause;
	}

	public void setCallbackWhenResumeAndPause(java.lang.Integer callbackWhenResumeAndPause) {
		this.callbackWhenResumeAndPause = callbackWhenResumeAndPause;
	}

	public java.lang.Integer getShowTitle() {
		return showTitle;
	}

	public void setShowTitle(java.lang.Integer showTitle) {
		this.showTitle = showTitle;
	}

	public java.lang.Integer getInjectCss() {
		return injectCss;
	}

	public void setInjectCss(java.lang.Integer injectCss) {
		this.injectCss = injectCss;
	}

	public java.lang.String getLaunch() {
		return launch;
	}

	public void setLaunch(java.lang.String launch) {
		this.launch = launch;
	}

	public java.lang.String getDiyLaunch() {
		return diyLaunch;
	}

	public void setDiyLaunch(java.lang.String diyLaunch) {
		this.diyLaunch = diyLaunch;
	}

	public java.lang.String getDiyLaunchParam() {
		return diyLaunchParam;
	}

	public void setDiyLaunchParam(java.lang.String diyLaunchParam) {
		this.diyLaunchParam = diyLaunchParam;
	}

	public java.lang.Integer getPersist_time() {
		return persist_time;
	}

	public void setPersist_time(java.lang.Integer persist_time) {
		this.persist_time = persist_time;
	}

	public java.lang.String getCityids() {
		return cityids;
	}

	public void setCityids(java.lang.String cityids) {
		this.cityids = cityids;
	}

	public java.lang.Integer getShowType() {
		return showType;
	}

	public void setShowType(java.lang.Integer showType) {
		this.showType = showType;
	}

	public java.lang.String getExtra() {
		return extra;
	}

	public void setExtra(java.lang.String extra) {
		this.extra = extra;
	}

	public java.lang.Integer getPrdid() {
		return prdid;
	}

	public void setPrdid(java.lang.Integer prdid) {
		this.prdid = prdid;
	}
	
	public java.lang.String getApp_prd_id() {
		return app_prd_id;
	}

	public void setApp_prd_id(java.lang.String app_prd_id) {
		this.app_prd_id = app_prd_id;
	}

	public java.lang.Integer getMustLogin() {
		return mustLogin;
	}

	public void setMustLogin(java.lang.Integer mustLogin) {
		this.mustLogin = mustLogin;
	}

	public java.lang.String getMemo() {
		return memo;
	}

	public void setMemo(java.lang.String memo) {
		this.memo = memo;
	}

	public String getExcept_channel() {
		return except_channel;
	}

	public void setExcept_channel(String except_channel) {
		this.except_channel = except_channel;
	}

	public String getBusiness_condition() {
		return business_condition;
	}

	public void setBusiness_condition(String business_condition) {
		this.business_condition = business_condition;
	}

    public Integer getIsTitleBarImmerse() {
        return isTitleBarImmerse;
    }

    public void setIsTitleBarImmerse(Integer isTitleBarImmerse) {
        this.isTitleBarImmerse = isTitleBarImmerse;
    }

    public Integer getIsMyIconWhite() {
        return isMyIconWhite;
    }

    public void setIsMyIconWhite(Integer isMyIconWhite) {
        this.isMyIconWhite = isMyIconWhite;
    }

    public String getTitleUrl() {
        return titleUrl;
    }

    public void setTitleUrl(String titleUrl) {
        this.titleUrl = titleUrl;
    }
}

